package com.template;



import com.template.properties.RobotProperty;
import com.template.template.FeishuTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author wangqi
 * @date 2024-01-08 15:08
 */
@EnableConfigurationProperties({RobotProperty.class})
public class FeiShuRobotAutoConfiguration {
   private final static Logger log= LoggerFactory.getLogger(FeiShuRobotAutoConfiguration.class);

    @Bean
    public FeishuTemplate feishuTemplate(RobotProperty robotProperty){
        log.info("初始化飞书机器人");
        return  new FeishuTemplate(robotProperty);
    }
}
